.well
  .row
    .col-md-4
      | 会员卡号：#{@member_card.code}    
    .col-md-4
      | 客户姓名：#{@member_card.customer.name}
    .col-md-4
      | 客户级别：#{@member_card.customer.customer_level.name}
  .row
    .col-md-4
      | 手机号：#{@member_card.customer.phone}    
    .col-md-4
      | 车牌号：#{@member_card.customer.car_num}
    .col-md-4
      | 车型：#{@member_card.customer.car_mo}
  .row
    .col-md-4
      | 卡内余额：#{@member_card.account}
    .col-md-4
      | 代金券：#{@member_card.coupon}

form method = 'get'
  .panel.panel-default
    .panel-heading
      | 明细
      = link_to "会员续费" , {:action => 'recharge', :controller=>'member_cards', :remote=>true}, {class: 'btn btn-primary btn-xs', style: "margin-left:10px;"}
      = link_to "计次续费" , new_member_card_detail_path(:id=>@member_card.id), class: "btn btn-primary btn-xs", style: "margin-left:10px;", :remote=>true

    .panel-body
      .table-responsive
        table.table.table-bordered.table-hover
          tr
            th 套餐名称
            th 次数
            th 操作
          
          -@member_card.member_card_details.each do |m|
            tr
              td = m.package.name
              td = m.times
              td
                 = link_to "删除" , member_card_detail_path(:id => m.id), :method => "DELETE", data: {confirm: '一旦删除,将无法恢复,是否删除?'}, class: "btn btn-danger btn-xs"

  